static File getBaseDirFromPackagePath(String path, Proto importer)
    {
        String importerPkg = importer.getPackageName();
        // the imports are declared before the package
        if (importerPkg == null)
            return null;

        File baseDir = importer.getFile().getAbsoluteFile().getParentFile();

        // up one level if package contains a dot.
        for (int i = 0; (i = importerPkg.indexOf('.', i)) != -1; i++)
            baseDir = baseDir.getParentFile();

        return baseDir;
    }
Search from every possible resource. Also loads from a remote url (if path starts with http://).
<p>

<pre>
Search order is:
1. relative path
2. proto_path
3. classpath
</pre>
protostuff-parser/src/main/java/io/protostuff/parser/DefaultProtoLoader.java