You could add a "break;" before this because once you found the "lockmode" property you don't need to look for anything else.