git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@4483 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0acb0fe142
commit
5b29e95fba
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue