public PerspectiveDefinition buildPerspective() {
final PerspectiveDefinition perspectiveDefinition = new PerspectiveDefinitionImpl( getDefaultPanelType() );
perspectiveDefinition.setName( getId() );
final String contextId = getContextId();
if ( contextId != null ) {
perspectiveDefinition.setContextDefinition( new ContextDefinitionImpl( new DefaultPlaceRequest( contextId ) ) );
}
perspectiveDefinition.setContextDisplayMode( getContextDisplayMode() );
final JSPanelDefinition view = getView( obj );
final boolean isSerializable = getIsSerializable( obj );