Try to create a resource for the given file. This method makes its best efforts to try to build a default resource out of a file.
@param container The container making the call.
@param request The HTTP request that triggered the call to the indexer(may be null).
@param directory The directory the file is in.
@param name The name of the file.
@param defs Any default attribute values that should be providedto the created resource at initialization time.
@return A Resource instance, or null if the givenfile can't be truned into a resource given our configuration database.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.