} else { try { result = new ObjectRepresentation<Serializable>(source) .getObject(); } catch (Exception e) {
result = (Representation) source; } else if (source instanceof Serializable) { result = new ObjectRepresentation<Serializable>( (Serializable) source, MediaType.getMostSpecific( target.getMediaType(),