Improved code
This commit is contained in:
parent
e7e251dac8
commit
5aad485d06
|
@ -187,12 +187,12 @@ public class ContextCache {
|
|||
|
||||
public synchronized Context getContextByUUID(String uuid) throws ResourceRegistryException {
|
||||
refreshContextsIfNeeded();
|
||||
return uuidToContext.get(UUID.fromString(uuid));
|
||||
return getContextByUUID(UUID.fromString(uuid));
|
||||
}
|
||||
|
||||
public synchronized Context getContextByFullName(String contextFullName) throws ResourceRegistryException {
|
||||
UUID uuid = getUUIDByFullName(contextFullName);
|
||||
return uuidToContext.get(uuid);
|
||||
return getContextByUUID(uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue