@@ -0,0 +1,565 @@
+package de.ddb.pdc.metadata;%0A%0Aimport java.util.regex.Matcher;%0Aimport java.util.regex.Pattern;%0A%0A/**%0A * class for utilities methods of metadata%0A */%0Apublic class MetadataUtils %7B%0A%0A  /**%0A   * @param string  input for regex%0A   * @param regex   for use%0A   * @return        the first string applied by regex or an empty string%0A   */%0A  public static String useRegex(String string, String regex) %7B%0A    Pattern pattern = Pattern.compile(regex);%0A    Matcher matcher = pattern.matcher(string);%0A    if (matcher.find()) %7B%0A      return matcher.group(0);%0A    %7D%0A    return %22%22;%0A  %7D%0A%7D%0A

Change Utitlity to new Class