code: public Property setProperty(String name, String[] values) throws ValueFormatException, VersionException,
        LockException, ConstraintViolationException, RepositoryException
     {
        checkValid();
  
        Value[] val = null;
        if (values != null)
        {
           val = new Value[values.length];
           for (int i = 0; i < values.length; i++)
           {
              val[i] = valueFactory.createValue(values[i]);
           }
        }
        return doUpdateProperty(this, locationFactory.parseJCRName(name).getInternalName(), val, true,
           PropertyType.UNDEFINED);
     }
docs: {@inheritDoc}