public static SpacePort create(int id, AstronomicalObject primary) {

        PropertyManager pm = new PropertyManager("config.properties");
        Random rnd = new Random();

        if (primary.getClass() == InhabitedPlanet.class) {
            return new SpacePort.Builder()
                    .id(id)
                    .name(NameGenerator.generate() + "'s SpacePort")
                    .startsCount(rnd.nextInt(100))
                    .buildSpacePort((InhabitedPlanet) primary);
        }
        if (primary.getClass() == NaturalSatellite.class)
            return new SpacePort.Builder()
                    .id(id)
                    .name(NameGenerator.generate() + "'s SpacePort")
                    .startsCount(rnd.nextInt(100))
                    .buildSpacePort((NaturalSatellite) primary);
        return new SpacePort();
    }