} catch (FactoryException e) {
throw (RuntimeException) new RuntimeException( ).initCause( e );
}
final Object object = resource.getContents().get(0);
if (object instanceof IProjectElement) {
OpenProjectElementCommand command = new OpenProjectElementCommand(
(IProjectElement) object);
monitor.setTaskName(Messages.StartupOpenMaps_OpenTask + ": " //$NON-NLS-1$
+ ((IProjectElement) object).getName());
ApplicationGIS.getActiveProject().sendASync(command);
}