private <T extends DeploymentData> DeploymentNodeInfo<T> createNodeInfo(final T node)
{
DeploymentNodeInfo<T> nodeInfo = null;
if (node instanceof DeploymentRecord)
{
DeploymentRecord deployment = (DeploymentRecord) node;
if (deployment.isHasSubdeployments())
{
nodeInfo = (DeploymentNodeInfo<T>) new DeploymentNodeInfo<DeploymentRecord>(
new DeploymentDataProvider<DeploymentRecord>(),
new DeploymentDataCell<DeploymentRecord>(deploymentBrowser));
cache(nodeInfo, node.getClass().getName() + "#subdeployments");
}
else if (deployment.isHasSubsystems())
{
nodeInfo = (DeploymentNodeInfo<T>) new DeploymentNodeInfo<DeploymentSubsystem>(
new DeploymentDataProvider<DeploymentSubsystem>(),
new DeploymentDataCell<DeploymentSubsystem>(deploymentBrowser));
cache(nodeInfo, node.getClass().getName() + "#subsystems");