sb.append(lockName);
final String path = sb.toString();
Resource lockResource = resolver.getResource(path);
if ( lockResource == null ) {
resolver.refresh();
try {
final Map<String, Object> props = new HashMap<String, Object>();
props.put(Utility.PROPERTY_LOCK_CREATED, Calendar.getInstance());
props.put(Utility.PROPERTY_LOCK_CREATED_APP, Environment.APPLICATION_ID);
props.put(ResourceResolver.PROPERTY_RESOURCE_TYPE, Utility.RESOURCE_TYPE_LOCK);