private static boolean isNamespaceAllowed(final String namespace, final List<String> list) {
    return list.contains(namespace) || StringUtil.isEmpty(namespace) && list.isEmpty();

  }
private static boolean isNamespaceAllowed(final String namespace, final List<String> list)