One of the state’s newest apartment communities is not along the Hudson River or a mass transit line, but on the grounds of a historic castle built by a founding father of Johnson & Johnson.