getFolderContents wasn't returning designs when mode=1 (authoring). The equality check was wrong (using == instead of .equals), so it was only returning valid designs. Nothing is setting the "valid" flag yet, so no designs were valid, and hence none returned.