/** * Free the {@code UnitAllocation}. * If the {@code UnitAllocation} was never allocated this method has no effect. * * @param unitAllocation * @throws CouldNotPerformException if the shutdown of the executableResource fails */ public static void deallocate(final UnitAllocation unitAllocation) throws CouldNotPerformException { try { unitAllocation.free(); } catch (CouldNotPerformException ex) { throw new CouldNotPerformException("Could not deallocate resource", ex); } } }