class PaperTypeConverter extends AbstractConverter<PaperType, PaperTypeResource> {

	@Override
	public PaperTypeResource convert(final PaperType source, final PaperTypeResource target) {

		target.setId(source.getId());
		target.setName(source.getName());
		target.setAbbrName(source.getAbbrName());
		
		if (source.getPaperUsage() != null) {
			target.setPaperUsageId(source.getPaperUsage().getId());
		}

		return target;
	}

}