class UserRolesServiceImpl implements UserRolesService {

	@Override
	public UserRoles getUserRoleById(final String roleId) throws PacManException {
		boolean isRoleIdExits = userRolesRepository.existsById(roleId);
		if(isRoleIdExits) {
			return userRolesRepository.findById(roleId).get();
		} else {
			throw new PacManException(USER_ROLE_NOT_EXITS);
		}
	}

}