* @param ident id as string
* @return a Principal object whom Id is ident or null.
*/
public static Principal getPrincipal(String ident) {
LOGGER.debug("Resolving principal ident: " + ident);
Principal result = null;
// look for ident in User table
result = (Principal)WOJServer.getInstance().getDataService().getUserDao().getUserById(Long.valueOf(ident));
if (result == null) {
// No user known for this ident, look for Group
result = (Principal)WOJServer.getInstance().getDataService().getGroupDao().getGroup(ident);