code: public static Object getWritePart(final Object array, final AttrWriteType writeType) {
  	if (writeType.equals(AttrWriteType.READ_WRITE)) {
  	    return Array.get(array, 1);
  	} else {
  	    return Array.get(array, 0);
  	}
      }
docs: Extract the write part of a scalar attribute
  
  @param array
  @param writeType
  @return