code: public static HashMap<String, OrientPermission[]> toSecureMap(RequiredOrientResource... resources)
  	{
  		HashMap<String, OrientPermission[]> secureMap = new HashMap<String, OrientPermission[]>();
  		for (RequiredOrientResource requiredOrientResource : resources)
  		{
  			String resource = requiredOrientResource.value();
  			String specific = requiredOrientResource.specific();
  			String action = requiredOrientResource.action();
  			if(!Strings.isEmpty(specific)) resource = resource+"."+specific;
  			if(!Strings.isEmpty(action)) resource = resource+":"+action;
  			secureMap.put(resource, requiredOrientResource.permissions());
  		}
  		return secureMap;
  	}
docs: Transform array of {@link RequiredOrientResource}s to a {@link HashMap}.
  {@link HashMap} is required to be serializable
  @param resources {@link RequiredOrientResource}s to convert
  @return {@link HashMap} representation of an {@link OrientPermission}s