public List<Resource> toList() {
        List<Resource> resourceList = new ArrayList<>();
        resourceList.add(this);
        return resourceList;
    }
public List<Resource> toList() {
        List<Resource> resourceList = new ArrayList<>();
        resourceList.add(this);
        return resourceList;
    }
public List < Resource > toList ( ) { List < Resource > resourceList = new ArrayList <> ( ) ; resourceList . add ( this ) ; return resourceList ; }
creates a list with this Element in it.
@return a list
creates a list with this Element in it .