/* (non-Javadoc)
* @see org.directwebremoting.CreatorManager#getCreator(java.lang.String, boolean)
*/
public Creator getCreator(String scriptName, boolean includeHidden) throws SecurityException
{
Creator creator = creators.get(scriptName);
if (creator == null)
{
StringBuffer buffer = new StringBuffer("Names of known classes are: ");
for (String key : creators.keySet())
{
buffer.append(key);
buffer.append(' ');
}
log.error("Class not found: '" + scriptName + "'");
log.warn(buffer.toString());
throw new SecurityException("Class not found");
}
if (creator.isHidden() && !includeHidden)
{
log.warn("Attempt made to get hidden class with name: " + scriptName + " while includeHidden=false");
throw new SecurityException("Class not found");
}