private SectionName toSectionName()

in src/main/java/org/apache/sling/graphql/schema/aggregator/impl/PartialReader.java [157:166]


    private SectionName toSectionName(String str) throws SyntaxException {
        if(str == null) {
            return null;
        }
        try {
            return SectionName.valueOf(str);
        } catch(Exception e) {
            throw new SyntaxException(String.format("Invalid section name '%s'", str));
        }
    }