private List<CmsResource> getContents(String folderPath, String type) throws CmsException {

        CmsPathMap<CmsResource> pathMap = getPathMapForType(type);
        return pathMap.getChildValues(folderPath);
    }
private List < CmsResource > getContents ( String folderPath , String type ) throws CmsException { CmsPathMap < CmsResource > pathMap = getPathMapForType ( type ) ; return pathMap . getChildValues ( folderPath ) ; }
Gets the contents for the given folder path and type name.<p>

@param folderPath the content folder path
@param type the type name
@return the list of contents

@throws CmsException if something goes wrong