@Override protected String selectTransferSyntaxFor(Association storeas, ArchiveInstanceLocator inst) throws UnsupportedStoreSCUException { Set<String> acceptedTransferSyntax = storeas.getTransferSyntaxesFor(inst.cuid); // check for SOP classes elimination if (context .getArchiveAEExtension() .getRetrieveSuppressionCriteria() .isCheckTransferCapabilities()) { inst = service.eliminateUnSupportedSOPClasses(inst, context); // check if eliminated then throw exception if (inst == null) throw new UnsupportedStoreSCUException("Unable to send instance, SOP class not configured"); if (isConfiguredAndAccepted(inst, storeas.getTransferSyntaxesFor(inst.cuid))) return inst.tsuid; else return getDefaultConfiguredTransferSyntax(inst); } if (acceptedTransferSyntax.contains(inst.tsuid)) return inst.tsuid; return storeas.getTransferSyntaxesFor(inst.cuid).contains(UID.ExplicitVRLittleEndian) ? UID.ExplicitVRLittleEndian : UID.ImplicitVRLittleEndian; }