code: public static String[] getMultiProperty(JcrPackageDefinition pckgDef, String key) {
          String[] result = new String[0];
          try {
              Property property = pckgDef.getNode().getProperty(key);
              Value[] values = property.getValues();
              result = new String[values.length];
              for (int i = 0; i < values.length; i++) {
                  result[i] = values[i].getString();
              }
          } catch (PropertyNotFoundException | PathNotFoundException pnfex) {
          } catch (RepositoryException rex) {
              LOG.error(rex.getMessage(), rex);
          }
          return result;
      }
docs: Definition properties