if ( project instanceof Project ) {
Project theCurrentProject = (Project) theServerProjects.get(index);
projectBean = new ProjectBean( this, theCurrentProject.getName() );
}
else if ( project instanceof ProjectConfig ) {
ProjectConfig theCurrentProject = (ProjectConfig) theServerProjects.get(index);
projectBean = new ProjectBean( this, theCurrentProject.getName() );
}
updateValues( projectBean );
theProjects.add( projectBean );