code: @SuppressWarnings("static-method")
  	protected boolean isSourceFile(Resource resource) {
  		if (resource instanceof BatchLinkableResource) {
  			return !((BatchLinkableResource) resource).isLoadedFromStorage();
  		}
  		return false;
  	}
docs: Replies if the given resource is a script.
  
  @param resource the resource to test.
  @return <code>true</code> if the given resource is a script.