checkValidResourceInputFile(resource);
int classDiv = className.lastIndexOf(".");
String packageName = className.substring(0, classDiv);
String name = className.substring(classDiv + 1);
AbstractLocalizableInterfaceCreator creator;
if (interfaceClass.equals(Messages.class)) {
creator = new MessagesInterfaceCreator(name, packageName, resource,
source);
} else {
creator = new ConstantsInterfaceCreator(name, packageName, resource,
source, interfaceClass);
}
creator.generate();
}