return provide(source, currentValue, false, false);
}
public Object provide(Object source, Object currentValue, boolean includeQuickDeliveryTypes, boolean includePreBolonhaTypes) {
IDocumentRequestBean bean = (IDocumentRequestBean) source;
final Collection<DocumentRequestType> result = new ArrayList<DocumentRequestType>();
for (final DocumentRequestType documentRequestType : DocumentRequestType.values()) {
if (includeQuickDeliveryTypes != documentRequestType.isAllowedToQuickDeliver()) {
continue;
}
if (!includePreBolonhaTypes && documentRequestType.isPreBolonha()) {
continue;
}
if (documentRequestType.isBolonhaOnly() && bean.hasRegistration() && !bean.getRegistration().isBolonha()) {
continue;
}
if (documentRequestType.equals(DocumentRequestType.APPROVEMENT_CERTIFICATE)) {
continue;