@Override
public void processBean(final CRResolvableBean bean) throws CRException {
if (bean instanceof CRResolvableBean) {
Resolvable res = bean.getResolvable();
if (res instanceof ResolvableFileBean) {
ResolvableFileBean fileBean = (ResolvableFileBean) res;
try {
bean.set(this.targetAttribute, fileBean.getDetectedMimetype());
} catch (IOException e) {
bean.set(this.targetAttribute, fileBean.getMimetype());
}
}
}
}