class ShapeInMemFeatureModel extends FeatureSourceRetriever implements FeatureModel {

	@Override
	public Attribute getAttribute(Object feature, String name) throws LayerException {
		AbstractAttributeInfo attributeInfo = getAttributeInfoMap().get(name);
		if (null == attributeInfo) {
			throw new LayerException(ExceptionCode.ATTRIBUTE_UNKNOWN, name, getAttributeInfoMap().keySet());
		}
		try {
			return converterService.toDto(asFeature(feature).getAttribute(name), attributeInfo);
		} catch (GeomajasException e) {
			throw new LayerException(e);
		}
	}

	public  ShapeInMemFeatureModel(DataStore dataStore, String featureSourceName, int srid,
			DtoConverterService converterService);

}