The joint embedding property and maximal models