for ( final String key : json.keySet() ) {
placeRequest.addParameter( key, json.get( key ).isString().stringValue() );
}
}
final PartDefinition partDefinition = new PartDefinitionImpl( placeRequest );
partDefinition.setContextDisplayMode( JSNativePerspective.this.getContextDisplayMode( part.getContextDisplayModeAsString(), ContextDisplayMode.SHOW ) );
if ( part.getContextId() != null ) {
partDefinition.setContextDefinition( new ContextDefinitionImpl( new DefaultPlaceRequest( part.getContextId() ) ) );
}
panel.addPart( partDefinition );
}
}