class BloombergPermissions {

  public static int extractEid(String permissionString) {
    ArgumentChecker.notNull(permissionString, "permissionString");
    if (isEid(permissionString) == false) {
      throw new IllegalArgumentException("Permission string does not represent an EID: " + permissionString);
    }
    String eidStr = permissionString.substring(EID_PREFIX.length());
    try {
      return Integer.parseInt(eidStr);
    } catch (RuntimeException ex) {
      throw new IllegalArgumentException("Permission string does not represent a valid EID: " + permissionString);
    }
  }

  private  BloombergPermissions();

}