GetLimbsKvpReader kvp = new GetLimbsKvpReader();
GetLimbsRequest getLimbsRequest = kvp.read( requestParams );
List<Limb> limbs = this.limbService.getLimbs( getLimbsRequest );
GetLimbsResponseWriterFactory writerFactory = this.limbWriters.get( getLimbsRequest.getFormat() );
if (writerFactory == null)
{
throw new ServletException( "Unsupported format '" + getLimbsRequest.getFormat() + "'." );
}
ILimbWriter writer = writerFactory.createWriter( response );
writer.write( limbs.listIterator() );
writer.writeTerminator();
writer.flush();
}
catch (Exception e)