public ResourceKey createKey(Object value, Map factoryKeys)
throws ResourceKeyCreationException
{
if (value instanceof URL)
{
return new ResourceKey
(URLResourceLoader.class.getName(), value, factoryKeys);
}
if (value instanceof String)
{
String valueString = (String) value;
// the 'file' schema is defined to have double-slashes, but the JDK
// ignores RFC 1738 in that case. So we have to check for these beasts
// directly ..
if (valueString.indexOf("://") >= 0 ||
valueString.startsWith("file:/"))
{
try
{
return new ResourceKey(URLResourceLoader.class.getName(),
new URL(valueString), factoryKeys);
}
catch (MalformedURLException mfue)
{