This commit is contained in:
Lucio Lelii 2008-10-09 22:34:39 +00:00
parent 0acb0fe142
commit 5b29e95fba
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ public class RegistryFactory{
System.out.println("profile:" +profile);
try {
resource = ResourceType.valueOf(mess.getType()).getResourceClass();
ResourceType.valueOf(mess.getType()).getResourceClass().getClass().cast(resource);
resource.load(new BufferedReader(new InputStreamReader(new ByteArrayInputStream(profile.getBytes("UTF-8")), "UTF-8")));
if (mess.getType().compareTo(GCUBEGenericResource.TYPE)==0){