public static void validate ( final SerialToNetworkSetupModule setupModule, final OperatingSystemDescriptor descriptor ) throws Exception { if ( !OperatingSystemDescriptors.isProperty ( descriptor, DPKG_DIVERT, false ) ) { throw new IllegalStateException ( String.format ( "Operating system %s does not support '%s'. Or it is not set to 'true'.", descriptor.getId (), DPKG_DIVERT ) ); } } }