ArtistDto toDto(final Artist source, final Map<Object, Object> translated) {
if (translated.containsKey((source))) {
return (ArtistDto) translated.get(source);
}
Assert.notNull(source, "argument [source] may not be null");
ArtistDto result = new ArtistDto(source.getId(), source.getVersion());
result.setFirstName(source.getFirstName());
result.setLastName(source.getLastName());
result.setAge(source.getAge());
result.setArtistName(source.getArtistName());
translated.put(source, result);
return result;
}