public List<ClientlibElement> getChildren() {
        List<ClientlibElement> children = new ArrayList<>();
        for (Resource child : resource.getChildren()) {
            if (isFile(child)) children.add(new ClientlibFile(null, type, child, getAdditionalProperties()));
            else children.add(new ClientlibResourceFolder(type, child, this));
        }
        return children;
    }
public List < ClientlibElement > getChildren ( ) { List < ClientlibElement > children = new ArrayList < > ( ) ; for ( Resource child : resource . getChildren ( ) ) { if ( isFile ( child ) ) children . add ( new ClientlibFile ( null , type , child , getAdditionalProperties ( ) ) ) ; else children . add ( new ClientlibResourceFolder ( type , child , this ) ) ; } return children ; }
Returns all children - either {@link ClientlibResourceFolder} as well, or {@link ClientlibFile} .