public static LocalFileResource newResourceFromResource(String normalizedPath, String repositoryPath, InternalWsResource related) {
        SymbolicRootResource root = null;
        if (related != null)
            root = related.getSymbolicRoot();

        return new LocalFileResource(normalizedPath, repositoryPath, root);
    }
public static LocalFileResource newResourceFromResource ( String normalizedPath , String repositoryPath , InternalWsResource related ) { SymbolicRootResource root = null ; if ( related != null ) root = related . getSymbolicRoot ( ) ; return new LocalFileResource ( normalizedPath , repositoryPath , root ) ; }
Create a new local resource

@param normalizedPath
Normalized file path for this resource; can not be null.
@param repositoryPath
An abstraction of the file location; may be null.
@param related
LocalFileResource with shared attributes (like the SymbolicRoot)