public static AbstractCarriage generateFreightCarriage() {
		AbstractCarriage carriage = null;
		try {
			carriage = FreightCarriageFactory.newCarriage(
					new RandomEnum<FreightCarType>(FreightCarType.class).random(),
					generateId(),
					generateNumber(),
					generateMaxCapacity());
			((AbstractFreightCarriage) carriage).setCurCapacity(random
					.nextInt(((AbstractFreightCarriage) carriage).getMaxCapacity()));
		} catch (CarriageException e) {
			LOG.fatal("Cant't generete new FreightCarriage", e);
			System.exit(1);
		}
		LOG.debug("New FreightCarriage was generaed: " + carriage);
		return carriage;
	}