code: public boolean isAllowedTo(String subjectid, String resourcePath, String httpMethod) {
  		if (StringUtils.isBlank(subjectid) || StringUtils.isBlank(resourcePath) || StringUtils.isBlank(httpMethod)) {
  			return false;
  		}
  		resourcePath = Utils.urlEncode(resourcePath);
  		String url = Utils.formatMessage("_permissions/{0}/{1}/{2}", subjectid, resourcePath, httpMethod);
  		Boolean result = getEntity(invokeGet(url, null), Boolean.class);
  		return result != null && result;
  	}
docs: Checks if a subject is allowed to call method X on resource Y.
  @param subjectid subject id
  @param resourcePath resource path or object type
  @param httpMethod HTTP method name
  @return true if allowed