} else if (source instanceof InputStream) {
result = new InputRepresentation((InputStream) source,
MediaType.getMostSpecific(target.getMediaType(),
MediaType.APPLICATION_OCTET_STREAM));
} else if (source instanceof Reader) {
result = new ReaderRepresentation((Reader) source,
MediaType.getMostSpecific(target.getMediaType(),
MediaType.TEXT_PLAIN));
} else if (source instanceof Representation) {
result = (Representation) source;
} else if (source instanceof Serializable) {