code: public Feature transform(Source input) throws TransformationException {
          if (input == null) {
              return null;
          } else {
              EntityClassReader reader = EntityClassReader.getClassReaderFor(input.getClass());
              try {
                  return reader.asFeature(input);
              } catch (InvalidObjectReaderException e) {
                  // Can't happen!
                  throw new TransformationException("Transformation failed", e);
              }
          }
      }
docs: Transforms any object into a feature. If the given object is null, null is returned.
  @param input The given input
  @return a feature-wrapper around the given object
  @throws TransformationException if the object can not be completed