Implement applyProperties and add a bad arguments exception