changed npe when factory is not found to a runtime exception with
message