private static I_CmsResourceType getResourceType(CmsResource resource, String createType) {

        I_CmsResourceType resType = null;
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(createType)) {
            try {
                resType = OpenCms.getResourceManager().getResourceType(createType);
            } catch (CmsLoaderException e) {
                LOG.error("Could not read resource type '" + createType + "' for resource creation.", e);
            }
        } else if (resource != null) {
            resType = OpenCms.getResourceManager().getResourceType(resource);
        }
        return resType;
    }
private static I_CmsResourceType getResourceType ( CmsResource resource , String createType ) { I_CmsResourceType resType = null ; if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( createType ) ) { try { resType = OpenCms . getResourceManager ( ) . getResourceType ( createType ) ; } catch ( CmsLoaderException e ) { LOG . error ( "Could not read resource type '" + createType + "' for resource creation." , e ) ; } } else if ( resource != null ) { resType = OpenCms . getResourceManager ( ) . getResourceType ( resource ) ; } return resType ; }
Returns the resource type to create, or <code>null</code> if not available.<p>

@param resource the edit resource
@param createType the create type parameter

@return the resource type