@Override
public DojoResource getDojoResource(String name, DojoLibrary dojoLibrary) {
Map<String,DojoResource> dojoResources = (Map<String,DojoResource>)dojoLibrary.getDojoResources();
DojoResource r = dojoResources.get(name);
if(r==null) {
synchronized(this) {
r = dojoResources.get(name);
if(r==null) {
r = loadDojoResource(name,dojoLibrary);