code: public static String translateIdToUsername(final String id) throws FrameworkException {
  
  		if (Principal.SUPERUSER_ID.equals(id)) {
  			return Settings.SuperUserName.getValue();
  		}
  
  		final Principal principal = StructrApp.getInstance().get(Principal.class, id);
  		if (principal != null) {
  
  			return principal.getName();
  		}
  
  		return Principal.ANONYMOUS;
  	}
docs: ----- public static methods -----