Implemented substitution for scanned beans.