final JSPartDefinition part = parts.get( i );
final PlaceRequest placeRequest = new DefaultPlaceRequest( part.getPlaceName() );
if ( part.getParameters() != null ) {
final JSONObject json = new JSONObject( part.getParameters() );
for ( final String key : json.keySet() ) {
placeRequest.addParameter( key, json.get( key ).isString().stringValue() );
}
}
final PartDefinition partDefinition = new PartDefinitionImpl( placeRequest );