@Nullable public Hardware getHardware(final String hardwareUUID, final String locationUUID)
        throws FlexiantException {

        checkNotNull(hardwareUUID);

        String[] parts = hardwareUUID.split(":");

        checkArgument(parts.length == 2, "Expected hardwareUUID to contain :");

        final ProductOffer machineOffer =
            this.getResource(parts[0], ResourceType.PRODUCTOFFER, ProductOffer.class);
        final ProductOffer diskOffer =
            this.getResource(parts[1], ResourceType.PRODUCTOFFER, ProductOffer.class);


        if (machineOffer == null || diskOffer == null) {
            return null;
        }
        return Hardware.from(machineOffer, diskOffer, locationUUID);
    }
@ Nullable public Hardware getHardware ( final String hardwareUUID , final String locationUUID ) throws FlexiantException { checkNotNull ( hardwareUUID ) ; String [ ] parts = hardwareUUID . split ( ":" ) ; checkArgument ( parts . length == 2 , "Expected hardwareUUID to contain :" ) ; final ProductOffer machineOffer = this . getResource ( parts [ 0 ] , ResourceType . PRODUCTOFFER , ProductOffer . class ) ; final ProductOffer diskOffer = this . getResource ( parts [ 1 ] , ResourceType . PRODUCTOFFER , ProductOffer . class ) ; if ( machineOffer == null || diskOffer == null ) { return null ; } return Hardware . from ( machineOffer , diskOffer , locationUUID ) ; }
Retrieves the hardware identified by the given uuid.

@param hardwareUUID the id of the hardware
@param locationUUID the id of the location
@return information about the hardware if any, otherwise null.
@throws FlexiantException